
/**
 * svg 边框属性Form编辑器rules, 用Form-Create的对象组件嵌套进行生成
 * 数据结构：{ stroke:{ "color":"#000000","width":"2","dasharray":"0,0" }}
 */
export const fontEditSchema = {
  type: 'object', // Form-Create的对象组件
  title: '',
  wrap: {
    labelCol: {span: 0},
    wrapperCol: {span: 24}
  },
  props: {
    rule: [
      // 'elColorPicker'颜色选择器,需要设置props:{showAlpha:true}
      {
        type: 'elColorPicker',
        field: 'color',
        title: '边框颜色1',
        props: {showAlpha: true, size: 'small', popperClass: 'color-dropdown'},
        wrap: {
          labelCol: {span: 4},
          wrapperCol: {span: 20}
        }
      },
      {
        type: 'InputNumber',
        field: 'width',
        title: '边框粗细',
        props: {
          min: 1
        },
        wrap: {
          labelCol: {span: 4},
          wrapperCol: {span: 20}
        }
      },
      {
        type: 'select',
        field: 'dasharray',
        title: '边框样式',
        options: [
          {'value': '0,0', 'label': '实线'},
          {'value': '5,5', 'label': '虚线'},
          {'value': '10,5', 'label': '长虚线'},
          {'value': '2,2', 'label': '点线'}
        ],
        wrap: {
          labelCol: {span: 4},
          wrapperCol: {span: 20}
        }
      }
    ]
  }
}
